package cn.bs.busuo.front.account.dao.persist.mapper;

import cn.bs.busuo.front.account.pojo.entity.HotelFavorite;
import cn.bs.busuo.front.account.pojo.vo.FavoriteHotelVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

public interface HotelFavoriteMapper extends BaseMapper<HotelFavorite> {
    int selectFavoriteHotelIfExits (Long hotelId, Long userId);

    int deleteByUserIdAndHotelId(Long hotelId, Long userId);

    List<FavoriteHotelVO> listFavoriteHotel(Long id);
}
